<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:directive.include file="/WEB-INF/decorators/taglibs.jsp"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
</head>
<body>
<table id="userList"></table>
<script type="text/javascript">
$(function() {
	$("#userList").datagrid({
		pageNumber: 1,
		pageList: [10,20,50],
		title: '用户列表',
		//iconCls:'icon-save',
		nowrap: false,
		striped: true,
		collapsible: true,
		remoteSort: false,
		fit: true,
		url: ctx+"/user/list/page",
		columns: [[{title:"主键", field:"id"}, {title:"姓名", field:"username"}]],
		pagination: true,
		rownumbers: true,
		singleSelect: true,
		toolbar: [{
					text: "新添用户",
					iconCls: 'icon-add',
					handler: function() {
						
					}
				}, "-" ,{
					text: "删除",
					iconCls: 'icon-remove',
					handler: function() {
						
					}
				}]
	});
});
</script>
</body>
</html>